/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package crud.dao;

import common.utils.AppContext;






/**
 * 
 * @author Eric
 */
public class DAOLocator
{
	static
	{
		AppContext.setApplicationContextPath("/ressource/parametrage-base.xml");
	}
	
	public static TableDAO getTableDAO()
	{
		return (TableDAO)  AppContext.getApplicationContext().getBean("tableDAO");
	}

	public static CatalogueDAO getCatalogueDAO()
	{
		return (CatalogueDAO)  AppContext.getApplicationContext().getBean("catalogueDAO");
	}

	public static ColonneDAO getColonneDAO()
	{
		return (ColonneDAO)  AppContext.getApplicationContext().getBean("colonneDAO");
	}

	public static DonneeDAO getDonneeDAO()
	{
		return (DonneeDAO)  AppContext.getApplicationContext().getBean("donneeDAO");
	} 
	
//	public static ContrainteColonneDAO getContrainteColonneDAO()
//	{
//		return (ContrainteColonneDAO)  AppContext.getApplicationContext().getBean("contrainteColonneDAO");
//	} 
	
	
	
}
